package com.yf.exam.modules.tmpl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.math.BigDecimal;

/**
* <p>
* 试卷大题实体类
* </p>
*
* @author 聪明笨狗
* @since 2021-04-25 13:59
*/
@Data
@TableName("el_tmpl_group")
public class TmplGroup extends Model<TmplGroup> {

    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
    * 试卷ID
    */
    @TableField("tmpl_id")
    private String tmplId;

    /**
    * 标题
    */
    private String title;

    /**
    * 试题类型
    */
    @TableField("qu_type")
    private String quType;

    /**
    * 试题数量
    */
    @TableField("qu_count")
    private Integer quCount;

    /**
    * 试题总分
    */
    @TableField("total_score")
    private BigDecimal totalScore;

    /**
    * 单题分数
    */
    @TableField("per_score")
    private BigDecimal perScore;

    /**
    * 试题乱序
    */
    @TableField("qu_rand")
    private Boolean quRand;

    /**
    * 选项乱序
    */
    @TableField("item_rand")
    private Boolean itemRand;

    /**
    * 选错也给分
    */
    @TableField("path_score")
    private Boolean pathScore;

}
